package com.zzty.txj1.service.impl;

import com.zzty.txj1.dao.BusPointDao;
import com.zzty.txj1.entity.BusPoint;
import com.zzty.txj1.service.BusPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusPointServiceImpl implements BusPointService{
    @Autowired
    private BusPointDao busPointDao;
    @Override
    public BusPoint getBusPointById(BusPoint busPoint) {
        BusPoint busPoint1=busPointDao.getBusPointById(busPoint);
        return busPoint1;
    }

    @Override
    public Integer addBuspoint(BusPoint busPoint) {
        Integer count=busPointDao.addBuspoint(busPoint);
        return count;
    }

    @Override
    public List<BusPoint> getAllBuspoint() {
        List<BusPoint> busPoints=busPointDao.getAllBuspoint();
        return busPoints;
    }
}
